package cn.lanqiao.ui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.border.EtchedBorder;
import java.awt.Color;

public class MyAccountJDialog extends JDialog {
	private JTable table;
	public MyAccountJDialog() {
		setForeground(Color.BLACK);
		setTitle("我的账号");
		this.setResizable(false);
		setBounds(100, 100, 450, 343);
		getContentPane().setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		panel.setBounds(14, 13, 404, 54);
		getContentPane().add(panel);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("账号");
		lblNewLabel.setBounds(14, 13, 49, 28);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("New label");
		lblNewLabel_1.setBounds(77, 16, 137, 23);
		panel.add(lblNewLabel_1);
		
		JButton button = new JButton("修改密码");
		button.setBounds(270, 14, 113, 27);
		panel.add(button);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		panel_1.setBounds(14, 80, 404, 132);
		getContentPane().add(panel_1);
		panel_1.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(14, 13, 376, 106);
		panel_1.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"\u8D26\u53F7", "\u5386\u53F2\u767B\u5F55\u60C5\u51B5"
			}
		));
		scrollPane.setViewportView(table);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		panel_2.setBounds(14, 225, 404, 58);
		getContentPane().add(panel_2);
		panel_2.setLayout(null);
		
		JButton btnNewButton = new JButton("取消");
		btnNewButton.setBounds(14, 13, 113, 27);
		btnNewButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				MyAccountJDialog.this.setVisible(false);
			}
		});
		panel_2.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("确认");
		btnNewButton_1.setBounds(141, 13, 113, 27);
		panel_2.add(btnNewButton_1);
		
		JButton btnNewButton_2 = new JButton("删除信息");
		btnNewButton_2.setBounds(277, 13, 113, 27);
		panel_2.add(btnNewButton_2);
	}
}
